/*
 ********************************************************************************
 * Copyright www.ebidding.net.cn 2018/5/23 Authors: 闫广坤 <ygk@ebidding.com.cn> *
 ********************************************************************************
 */
package com.qiyang.common.autoconfig;


import com.alibaba.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;

/**
 * dubbo配置
 *
 * @author 闫广坤
 * @version 6.0.0
 */
@Configuration
@ConditionalOnClass({EnableDubbo.class})
@ConditionalOnProperty({"dubbo.enabled"})
@ImportResource({"classpath*:dubbo.xml", "classpath*:*-consumer.xml", "classpath*:*-provider.xml"}) /* 坑：classpath如果后面不加*，不会扫描依赖的jar包下文件，只加载自己web下的resource下的文件*/
public class DubboAutoConfiguration {
}
